package com.jshan.base.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 *
 * @TableName sys_content
 */
@TableName(value = "sys_content")
@Data
@Schema(description = "系统内容实体")
public class SysContent implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "内容ID")
    private Long id;

    /**
     * 标题
     */
    @Schema(description = "标题")
    private String title;

    /**
     * 内容
     */
    @Schema(description = "内容")
    private String content;

    /**
     * 禁用状态（0禁用，1启用）
     */
    @Schema(description = "状态(0:禁用 1:启用)")
    private Integer status;

    /**
     * 删除状态（0删除，1未删除）
     */
    @TableLogic(delval = "0", value = "1")
    @Schema(description = "删除状态(0:已删除 1:未删除)")
    private Integer isDelete = 1;

    /**
     * 图片路径
     */
    @Schema(description = "图片路径")
    private String imgPath;

    /**
     * 视频路径
     */
    @Schema(description = "视频路径")
    private String moviePath;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 创建用户
     */
    @Schema(description = "创建用户ID")
    private Integer createId;

    /**
     * 修改用户
     */
    @Schema(description = "修改用户ID")
    private Integer updateId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
